package com.demo.dao;

import com.demo.entity.UserRole;

import java.util.List;

public interface IUserRoleDao {

    int deleteByPrimaryKey(UserRole key);
    int deleteByUserId(Integer userid);

    /**
     * 根据role_id 统计
     * @param userid
     * @return
     */
    int queryByRoleId(UserRole userid);
    int insert(UserRole record);
    int insertSelective(UserRole record);
    int addBatch(List<UserRole> list);

}